<%-- 
    Document   : index
    Created on : Aug 27, 2013, 11:47:09 AM
    Author     : ChauAnh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
         <style type="text/css">
            table.styletable{
                font-family: verdana,arial,sans-serif;
                font-size:11px;
                color:black;
                width: 100%;
            }
            table.styletable th {
                background:#990000;
                font-size: 13px;
                color: white;
               
                padding: 8px;
               
            }
            table.styletable td {
                background:#ff99ff;
               
                padding: 8px;
              
            }
        </style>
    </head>
   <%
       String sr = "";
       try{
           String id = request.getParameter("id");
           if(id.equals("change")){
               sr = "ChangePass.jsp";
           }
          
           if(id.equals("add_services")){
               sr = "add_services.jsp";
           }
            if(id.equals("add_Chargestration")){
               sr = "add_Chargestration.jsp";
           }
            if(id.equals("view_service")){
               sr = "view_Services.jsp";
           }
            if(id.equals("update_service")){
               sr = "update_service.jsp";
           }
             if(id.equals("view_Charges")){
               sr = "view_Charges.jsp";
           }
             if(id.equals("update_charges")){
               sr = "update_charges.jsp";
           }
             if(id.equals("Update_payment_data")){
               sr = "Update_payment_data.jsp";
           }
             if(id.equals("UpdatePaymentData")){
               sr = "UpdatePaymentData.jsp";
           }
              if(id.equals("Delete_Candidate_data")){
               sr = "Delete_Candidate_data.jsp";
           }
                if(id.equals("RegisterViewByid_Data")){
               sr = "RegisterViewByid_Data.jsp";
           }
                  if(id.equals("View_Registetion")){
               sr = "View_Registetion.jsp";
           }
                
            if(id.equals("view_data")){
               sr = "home.jsp";
           }
       
       }catch(Exception ex){
           sr= "home.jsp";
       }
   %>
    
    <body>
        <table style="width: 100%; height: 800px;" class="styletable" border="1">
            <tr>
                <td style="width: 200px;vertical-align: top">
                   <table style="width: 100%">
            <tr>
                <td>
                    <table style="width: 100%">
                        <tr>
                            <td style="font-weight: bolder; font-size: medium">
                                Welcome:<%out.println(request.getSession().getAttribute("fullName_admin").toString());%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <img src="avatar/User_No.png" width="200" height="200" alt="User_No"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <a href="index_admin.jsp?id=change">Change Password</a>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <a>View profile</a>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <a href="Logout">Logout</a>
                            </td>
                        </tr>
                    </table>
                </td> 
            </tr>
            <tr>
                <td style="background: #A80037; color: white">
                    Service
                </td> 
            </tr>
            <tr>
                <td>
                    <a href="index_admin.jsp?id=add_services">Add Services </a>       
                </td> 
            </tr>
            <tr>
                <td>
                    <a href="index_admin.jsp?id=add_Chargestration">Add Chargetration </a>       
                </td> 
            </tr>

            <tr>
                <td>
                    <a href="Serv_ViewServices">View Services </a>       
                </td> 
            </tr>
            <tr>
                <td>
                    <a href="Serv_ViewCharges">View Charges </a>       
                </td> 
            </tr>
            <tr>
                <td style="background: #A80037; color: white">
                    Payment
                </td> 
            </tr>
            <tr>
                <td>
                    <a href="View_Payment_Data">View Payment </a>
                </td> 
                
            </tr>
            <tr>
                <td>
                    <a href="View_Register">View Register </a>
                </td> 
            </tr>
            <tr>
                <td style="background: #A80037; color: white">
                    Candidate
                </td> 
            </tr>
            <tr>
                <td>
                    <a href="View_Candidate_Data">Viev Candidate</a>
                </td> 
            </tr>
        </table>                
                </td>
                <td style="vertical-align: top">
                    <jsp:include page="<%=sr%>" />
                </td>
            </tr>
        </table>
    </body>
</html>
